﻿using System;
using System.Data;
using hieunv.Data.DataAccess;
namespace hieunv.Data.Business
{
	public class Business
	{
		protected DataRow _this;

		#region Properties

		#endregion
		public Business()
		{

		}
		public Business(DataRow that)
		{
			this._this = that;
		}
		public bool Insert()
		{
			_this.Table.Rows.Add(_this);
			return (_this.Table as DataAccess.DataAccess).Insert();
		}
		public bool Update()
		{
			return (_this.Table as DataAccess.DataAccess).Update();
		}
		public bool Delete()
		{
			_this.Delete();
			return (_this.Table as DataAccess.DataAccess).Delete();
		}
	}
}
